{% extends "html/base.html" %}

{% block title %}
电影列表_一部电影网
{% endblock %}

{% block description %}
历史推荐,一部电影网推荐过的所有视频，视频记录，高分电影在线观看。
{% endblock %}

{% block keywords %}
电影推荐,高分电影,一部电影网历史推荐
{% endblock %}

{% block site %}
    列表
{% endblock %}

{% block content-head %}
<div style="font-size: 2.25rem; padding-bottom:.6rem; line-height:1.2; border-bottom: 1px solid #eee; margin: 1rem auto;">
    <span style="display: inline; ">
        <a title="电影在线观看,一部电影网官网首页" style="color: #333333; text-decoration: none" class="md-header-anchor" href="/">
            <img style="height: 3rem; width: 3rem;" alt="logo,一部电影网logo" src="/static/logo/logo.png">
            <span style="margin: -.4rem">一部电影网</span>
        </a>
        <span style="font-size: .3rem;font-weight: bold">
            <a href="/list" title="历史推荐" style="text-decoration: none; color: #333333;">
                <h1 style="display: inline; border-bottom: none;">历史推荐</h1>
            </a>
        </span>
    </span>
    <span style="font-size: .3rem; margin-left: .6rem;">一起迎接有温度的每一天</span></div>
{% endblock %}

{% block content %}
<div style="overflow: hidden; margin-top: 2rem;">
{% for movie in movies|slice:":page_size" %}
    <div style="overflow: hidden; margin-bottom: 3rem; position: relative; height: 20rem;">
        <div style="width: 60%; ">
            <video title="{{ movie.name }}-{{ movie.name }}视频-一部电影网" class="myVideo" style=" float: left; border-radius: 1rem; height: 20rem; width: 100%; object-fit:cover;" controls poster="/upload/{{ movie.head_pics }}" referrerpolicy="no-referrer" alt="{{ movie.name }}">
                <source src="/upload/{{ movie.visual_guide }}"type="video/mp4">
                <source src="/upload/{{ movie.visual_guide }}" type="video/ogg">
            </video>
        </div>
            <div style="float: left; margin-left: 2%; width: 38%; margin-top: .3rem; color: rgb(61, 61, 61);">
                <a title="{{ movie.name }}_{{ movie.name }}观看_一部电影网" href="/movie/{{movie.id}}" style="text-decoration: none;">
                    <div style="font-weight: bold; margin-bottom: .3rem; color: #4183c4; padding: 1rem; background-color: #ff3; border-radius: 1rem; text-align: center;" >{{movie.name|safe}}</div>
                </a>
                <a title="{{ movie.name }}_{{ movie.name }}观看_一部电影网" href="/movie/{{movie.id}}">
                    <div style="background-color: #4183c4; border-radius: 1rem; padding: 1rem; height: 15rem; overflow: hidden;margin-top: 1rem; color:rgb(254, 255, 236);">{{movie.point|truncatechars:"160"|safe}}</div>
                </a>
            </div>
    </div>
{% endfor %}
</div>
<p> </p>

<div align="center">
    {% if page > 0 %}
        <a title="历史推荐,一部电影网历史推荐" href="/list/?page={{ page }}">前一页</a>
    {% endif %}
    <span style="margin: 10px">当前页码: {{ page|add:1 }}</span>
    {% if movies|length >= page_size %}
        <a title="历史推荐,一部电影网历史推荐" href="/list/?page={{ page|add:2 }}">后一页</a>
    {% else %}
        已经是最后一页了
    {% endif %}
</div>
{% endblock %}
